
//<img id="why" />
const el = document.querySelector('#why') as HTMLImageElement
el.src ='...'

class Person {

}

class student extends Person{
  studying(){

  }
}

function sayhello(p:Person){
  (p as student).studying
}

const stu = new student()
sayhello(stu)
